Place Statement In Block (PSIB)

Description:

The statement of a loop should always be a block. The then and else parts of if statements should always be in blocks. This makes it easier to add statements without accidentally introducing bugs (due to forgetting to add braces).

Incorrect:

if (val < 0) 
    return;
    
while (val >= 10)
    val /= 10;

Correct:

if (val < 0) {
    return;
}
    
while (val >= 10) {
    val /= 10;
}